package cn.itsource.user.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.user.domain.User;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过手机号码查询用户对象
     * @param phone  手机号码
     * @return  User  用户对象
     */
    User loadByPhone(String phone);


    /**
     * 根据登录信息id获取User对象
     * @param logininfoid
     * @return
     */
    User loadByLogininfoid(Long logininfoid);
}
